import {defineStore} from "pinia";
import {ref} from "vue";

export const useCartStore = defineStore('cart', () => {
        const cartList = ref([])
        const clearCart = () => {
            cartList.value = []
        }
        return {
            cartList,
            clearCart
        }
    },
    {
        persist: true

    }
)
